import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex)
export default new Vuex.Store({
  state: {
    address: "北京",
    userForm: JSON.parse(window.localStorage.getItem('userForm')) && JSON.parse(window.localStorage.getItem('userForm')) || { phone: '' } || { nickname: '' }
  },
  mutations: {
    ACTIVE(state, data) {
      state.address = data
    }
  },
  actions: {
  },
  modules: {
  }
})
